using Net35.Xrm.Sdk;
using System;
using System.Runtime.Serialization;
namespace Net35.Crm.Sdk.Messages
{
	[DataContract(Namespace = "http://schemas.microsoft.com/crm/2011/Contracts")]
	public sealed class CompoundCreateRequest : OrganizationRequest
	{
		public Entity Entity
		{
			get
			{
				if (base.Parameters.Contains("Entity"))
				{
					return (Entity)base.Parameters["Entity"];
				}
				return null;
			}
			set
			{
				base.Parameters["Entity"] = value;
			}
		}
		public EntityCollection ChildEntities
		{
			get
			{
				if (base.Parameters.Contains("ChildEntities"))
				{
					return (EntityCollection)base.Parameters["ChildEntities"];
				}
				return null;
			}
			set
			{
				base.Parameters["ChildEntities"] = value;
			}
		}
		public CompoundCreateRequest()
		{
			base.RequestName = "CompoundCreate";
			this.Entity = null;
			this.ChildEntities = null;
		}
	}
}
